home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / HippoDraw / HippoDrawSrc1.1 / Hippo.subproj / PGroup.m < prev    next >
Encoding:
Text File  |  1992-04-25  |  4.0 KB  |  163 lines

  1. /* PGroup.m    by Paul Kunz    March 1991
  2.  * Category extending the Group class
  3.  *
  4.  * Copyright (C)  1992  The Board of Trustees of
  5.  * The Leland Stanford Junior University.  All Rights Reserved.
  6.  */
  7.  
  8. #import "PGroup.h"
  9.  
  10. const char PGroup_h_rcsid[] = PGROUP_H_ID;
  11. const char PGroup_m_rcsid[] = "$Id: PGroup.m,v 1.7 1992/04/16 18:57:11 pfkeb Rel $";
  12.  
  13. #import <appkit/nextstd.h>
  14. #import <objc/List.h>
  15.  
  16. #import "Plot.h"
  17.  
  18. @implementation Group(PGroup)
  19.  
  20. - addCutPlot:cutPlot;
  21. {
  22.     return [self makeGraphicsPerform:@selector(addCutPlot:) with:cutPlot];
  23. }
  24. - addHTupleToList:list
  25. {
  26.     [components makeObjectsPerform:@selector(addHTupleToList:) with:list];
  27.     return self;
  28. }
  29.  
  30. - addPlotToList:list
  31. {
  32.     [components makeObjectsPerform:@selector(addPlotToList:) with:list];
  33.     return self;
  34. }
  35.  
  36. - bindAxisW:(const void *) value
  37. {
  38.     return [self makeGraphicsPerform:@selector(bindAxisW:) with:value];
  39. }
  40. - bindAxisX:(const void *) value
  41. {
  42.     return [self makeGraphicsPerform:@selector(bindAxisX:) with:value];
  43. }
  44. - bindAxisXE:(const void *) value
  45. {
  46.     return [self makeGraphicsPerform:@selector(bindAxisXE:) with:value];
  47. }
  48. - bindAxisY:(const void *) value
  49. {
  50.     return [self makeGraphicsPerform:@selector(bindAxisY:) with:value];
  51. }
  52. - bindAxisYE:(const void *) value
  53. {
  54.     return [self makeGraphicsPerform:@selector(bindAxisYE:) with:value];
  55. }
  56. - bindCuts
  57. {
  58.     [components makeObjectsPerform:@selector(bindCuts)];
  59.     [cache free];
  60.     cache = nil;
  61.     return self;
  62. }
  63. - bindReference
  64. {
  65.     [components makeObjectsPerform:@selector(bindReference)];
  66.     [cache free];
  67.     cache = nil;
  68.     return self;
  69. }
  70. - NameAxisW:(const void *) value
  71. {
  72.     return [self makeGraphicsPerform:@selector(NameAxisW:) with:value];
  73. }
  74. - NameAxisX:(const void *) value
  75. {
  76.     return [self makeGraphicsPerform:@selector(NameAxisX:) with:value];
  77. }
  78. - NameAxisY:(const void *) value
  79. {
  80.     return [self makeGraphicsPerform:@selector(NameAxisY:) with:value];
  81. }
  82. - NameAxisYE:(const void *) value
  83. {
  84.     return [self makeGraphicsPerform:@selector(NameAxisYE:) with:value];
  85. }
  86. - replace:oldTuple with:newTuple
  87. {
  88.     unsigned int    i;
  89.     
  90.     i = [components count];
  91.     while ( i-- ) {
  92.         [[components objectAt:i] replace:oldTuple with:newTuple];
  93.     }
  94.     return self;
  95. - replaceTupleWith:(const void *) value
  96. {
  97.     return [self makeGraphicsPerform:@selector(replaceTupleWith:) with:value];
  98. }
  99. - setAutoScaleX:(const int *) value
  100. {
  101.     return [self makeGraphicsPerform:@selector(setAutoScaleX:) with:value];
  102. }
  103. - setAutoScaleY:(const int *) value
  104. {
  105.     return [self makeGraphicsPerform:@selector(setAutoScaleY:) with:value];
  106. }
  107. - setAxesFlag:(const void *) value
  108. {
  109.     return [self makeGraphicsPerform:@selector(setAxesFlag:) with:value];
  110. }
  111. - setColorType:(const void *) value
  112. {
  113.     return [self makeGraphicsPerform:@selector(setColorType:) with:value];
  114. }
  115. - setDispType:(const void *) value
  116. {
  117.     return [self makeGraphicsPerform:@selector(setDispType:) with:value];
  118. }
  119. - setDrawType:(const void *) value
  120. {
  121.     return [self makeGraphicsPerform:@selector(setDrawType:) with:value];
  122. }
  123. - setGraphicView:view
  124. {
  125.     return [self makeGraphicsPerform:@selector(setGraphicView:) with:view];
  126. }
  127. - setLogScaleX:(const void *) value
  128. {
  129.     return [self makeGraphicsPerform:@selector(setLogScaleX:) with:value];
  130. }
  131. - setLogScaleY:(const void *) value
  132. {
  133.     return [self makeGraphicsPerform:@selector(setLogScaleY:) with:value];
  134. }
  135. - setNumBinsForAxisX:(const void *) value
  136. {
  137.     return [self makeGraphicsPerform:@selector(setNumBinsForAxisX:)
  138.                 with:value];
  139. }
  140. - setNumBinsForAxisY:(const void *) value
  141. {
  142.     return [self makeGraphicsPerform:@selector(setNumBinsForAxisY:)
  143.                 with:value];
  144. }
  145. - setRangeForAxisX:(const void *) value
  146. {
  147.     return [self makeGraphicsPerform:@selector(setRangeForAxisX:) with:value];
  148. }
  149. - setRangeForAxisY:(const void *) value
  150. {
  151.     return [self makeGraphicsPerform:@selector(setRangeForAxisY:) with:value];
  152. }
  153. - setTitle:(const void *) value
  154. {
  155.     return [self makeGraphicsPerform:@selector(setTitle:) with:value];
  156. }
  157. - setTitlesFlag:(const void *) value
  158. {
  159.     return [self makeGraphicsPerform:@selector(setTitlesFlag:) with:value];
  160. }
  161. @end
  162.